//===COMMENT===

package bubble3d.main {
	
	public class ModelFile {
	
		private var fileType:String;
		private var fileName:String;
		private var modelName:String;
		private var modelXML:XML;
		private var modelWrapper:ModelWrapper3D;
	
		public function ModelFile(fileName:String, fileType:String, modelName:String, modelWrapper:ModelWrapper3D){
			this.fileName = fileName;
			this.fileType = fileType;
			this.modelName = modelName;
			this.modelWrapper = modelWrapper;
		}
		public function getFileName():String {
			return(fileName);
		}
		public function getFileType():String {
			return(fileType);
		}
		public function getModelName():String {
			return(modelName);
		}
		public function wrapper():ModelWrapper3D {
			return(modelWrapper);
		}
		public function store(modelXML:XML):void {
			this.modelXML = modelXML;
			modelWrapper.configure();
		}
		public function createActions():void {
			modelWrapper.createActions();
		}
		public function updateXML(modelXML:XML):void {
			this.modelXML = modelXML;
		}
		public function xml():XML {
			return(modelXML);
		}
	}

}